home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacHack 2000
/
MacHack 2000.toast
/
pc
/
The Hacks
/
Softshoe
/
Lisa's Mac Parts
/
Views
/
Tiled Views
/
PaneColumnOfHeight.h
< prev
next >
Wrap
Text File
|
2000-06-23
|
697b
|
40 lines
// PaneColumnOfHeight.h
#ifndef PaneColumnOfHeight_h
#define PaneColumnOfHeight_h
#ifndef PaneColumn_h
#include "PaneColumn.h"
#endif
#ifndef TiledPane_h
#include "TiledPane.h"
#endif
template <uint32 numberOfPanes>
class PaneColumnOfHeight: public PaneColumn
{
private:
TiledPane basePanes[ numberOfPanes ];
public:
PaneColumnOfHeight()
{
for ( uint32 i = 0; i < numberOfPanes; i++ )
Add( basePanes[i], afterEnd );
}
RectangularPane& operator[]( uint32 i )
{
Assert( i < numberOfPanes );
return basePanes[i];
}
const RectangularPane& operator[]( uint32 i ) const
{
Assert( i < numberOfPanes );
return basePanes[i];
}
};
#endif